BrowserView

fun <Error class: unknown class>.BrowserView(browser: Browser, modifier: <Error class: unknown class> = Modifier, popups: <Error class: unknown class><PopupWindowState> = remember { mutableStateListOf() })
fun <Error class: unknown class>.BrowserView(browser: Browser, modifier: <Error class: unknown class> = Modifier, popups: <Error class: unknown class><PopupWindowState> = remember { mutableStateListOf() })

A component that displays the content of the given browser.

This component needs a WindowScope to access the native AWT window. This access enables the BrowserView to utilize native AWT capabilities, such as handling specific window events, accessing window properties, and perform operations beyond the Compose features.

The passed modifier supports all the same options as the Box composable. You can use it to adjust properties like size, padding, alignment, and more.

The list of popups is used to store the currently visible popups. It is possible to hoist the list instantiation and use it to create popup windows outside the browser view. For example, when using DefaultOpenExtensionPopupCallback.

Please note, as for now, the component supports only OFF_SCREEN rendering mode. Passing a browser instance with HARDWARE_ACCELERATED mode leads to a runtime exception. See also: Rendering modes.

Parameters

browser

The browser, the content of which to display.

modifier

The modifier to be applied to the layout.

popups

The list of popups to display.